import moment from 'moment'

export function formatDate (date: number | Date | string): string {
  return moment(date).format('YYYY-MM-DD')
}

export function formatDatetime (date: number | Date | string): string {
  return moment(date).format('YYYY-MM-DD HH:mm:ss')
}
